/*
 * @Description: 单位导航包裹组件
 * @Author: Rfan
 * @Date: 2022-02-10 13:40:29
 * @LastEditTime: 2022-10-26 11:54:12
 */

import { useAutoIncreaseContext } from '../contexts/AutoIncreaseContext';
import FondsNav from '@/components/FondsNav';
import ATNav from '@/components/ATNav';
import UFALNav from '@/components/UFALNav';

const FondsSidebar = () => {
  const { setSelectFond, setSelectAT, setSelectLevel } = useAutoIncreaseContext();

  const handleNavChange = ({ fondItem, atItem, levelItem }: any) => {
    setSelectFond(fondItem);
    setSelectAT(atItem);
    setSelectLevel(levelItem);
  };

  return (
    <>
      <UFALNav onChange={handleNavChange} />
    </>
  );
};

export default FondsSidebar;
